package dj.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OperateLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "operate_log", catalog = "mytest")
public class OperateLog implements java.io.Serializable {

	// Fields

	private String id;
	private String user;
	private String operate;
	private String ip;
	private Timestamp operateTime;
	private String operateType;
	private String object;

	// Constructors

	/** default constructor */
	public OperateLog() {
	}

	/** minimal constructor */
	public OperateLog(String id, String user, Timestamp operateTime, String operateType, String object) {
		this.id = id;
		this.user = user;
		this.operateTime = operateTime;
		this.operateType = operateType;
		this.object = object;
	}

	/** full constructor */
	public OperateLog(String id, String user, String operate, String ip, Timestamp operateTime, String operateType, String object) {
		this.id = id;
		this.user = user;
		this.operate = operate;
		this.ip = ip;
		this.operateTime = operateTime;
		this.operateType = operateType;
		this.object = object;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "user", nullable = false, length = 100)
	public String getUser() {
		return this.user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	@Column(name = "operate", length = 1500)
	public String getOperate() {
		return this.operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

	@Column(name = "ip", length = 20)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "operateTime", nullable = false, length = 19)
	public Timestamp getOperateTime() {
		return this.operateTime;
	}

	public void setOperateTime(Timestamp operateTime) {
		this.operateTime = operateTime;
	}

	@Column(name = "operateType", nullable = false, length = 50)
	public String getOperateType() {
		return this.operateType;
	}

	public void setOperateType(String operateType) {
		this.operateType = operateType;
	}

	@Column(name = "object", nullable = false, length = 50)
	public String getObject() {
		return this.object;
	}

	public void setObject(String object) {
		this.object = object;
	}

}